/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.rcn.core.exception;

/**
 *
 * @author Nicolas
 */
public class RaccoonException extends Exception{

	public static enum ERROR_MESSAGE{
		
		UNKNOWN("Error inesperado."),
		ERROR_SAVE_PATIENT("Ocurrio un problema al intentar grabar el paciente."),
		PATIENT_NOT_FOUND("El paciente no existe."),
		INVALID_PARAMETER("Parametro invalido."),
		DUPLICATE_PATIENT("DNI duplicado");
			
		private String message;
		
		ERROR_MESSAGE(String message){
			this.message = message;
		}
		
		@Override
		public String toString(){
			return this.message;
		}
	}
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public RaccoonException(String message, Throwable cause) {
        super(message, cause);
    }

    @Override
    public String getMessage() {
        return super.getMessage();
    }
    
}
